package com.design.principle.compositeAggregate;

/**
 * @program: designPattern
 * @description:
 * @author: STU756
 * @create: 2021-01-19 01:44
 */
public class ProductDao {
    private DBConnetion connetion;
    public void setConnection(DBConnetion dbConnetion) {
        this.connetion = dbConnetion;
    }

    public void addProduct(){
        String conn = connetion.getConnnection();
//        ......
//        ....
    }
}
